<template>
	<view class="secret-page">
		<view class="page-title">化妆秘籍</view>

		<view class="secret-list">
			<view class="secret-item" v-for="(item, index) in makeupList" :key="index">
				<view class="item-header">
					<view class="item-title">{{ item.title }}</view>
					<text class="iconfont icon-heart"></text>
				</view>

				<view class="item-body">
					<image class="item-img" :src="item.img"></image>
					<text class="item-desc">{{ item.desc }}</text>
				</view>

				<view class="item-footer" @tap="toDetail(item)">
					教程详情 <text class="iconfont icon-right"></text>
				</view>
			</view>
		</view>
	</view>
</template>


<script setup>
const makeupList = [
	{
		title: '百搭日常妆',
		img: 'https://ribotrade-oss.oss-cn-beijing.aliyuncs.com/2025/05/05f7500703cb2f42258d801c1a14ff4e82image.png',
		desc: '妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介'
	},
	{
		title: '复古千金妆',
		img: 'https://ribotrade-oss.oss-cn-beijing.aliyuncs.com/2025/05/058d0d05af5e774fad9aa3bde0dd9f550eimage.png',
		desc: '妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介'
	},
	{
		title: '浓颜辣妹妆',
		img: 'https://ribotrade-oss.oss-cn-beijing.aliyuncs.com/2025/05/05af8c303189654911a86c4c9df2d5d145image.png',
		desc: '妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介'
	},
	{
		title: '百搭日常妆',
		img: 'https://ribotrade-oss.oss-cn-beijing.aliyuncs.com/2025/05/05f7500703cb2f42258d801c1a14ff4e82image.png',
		desc: '妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介'
	},
	{
		title: '复古千金妆',
		img: 'https://ribotrade-oss.oss-cn-beijing.aliyuncs.com/2025/05/058d0d05af5e774fad9aa3bde0dd9f550eimage.png',
		desc: '妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介'
	},
	{
		title: '浓颜辣妹妆',
		img: 'https://ribotrade-oss.oss-cn-beijing.aliyuncs.com/2025/05/05af8c303189654911a86c4c9df2d5d145image.png',
		desc: '妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介妆容简介'
	},
];

const toDetail = (item) => {
	// 跳转逻辑
	uni.navigateTo({
		url: `/pages/index/plantInfo?title=${item.title}`
	});
};
</script>


<style scoped lang="scss">
.secret-page {
	background: #fff;
	padding: 40rpx;

	.page-title {
		font-size: 36rpx;
		font-weight: bold;
		color: #333;
		margin-bottom: 30rpx;
	}

	.secret-list {
		display: flex;
		flex-direction: column;
		gap: 30rpx;

		.secret-item {
			border-radius: 25px;
			padding: 30rpx;
			box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.05);
			background: linear-gradient(207.24deg, rgba(229, 194, 244, 0.2) 13.23%,rgba(255, 249, 225, 0.08) 62.383%),linear-gradient(134.29deg, rgb(249, 223, 227) 56.283%,rgba(255, 249, 225, 0.42) 97.26%);
		}

		.item-header {
			display: flex;
			justify-content: space-between;
			align-items: center;

			.item-title {
				font-size: 30rpx;
				font-weight: bold;
				color: #1218269E;
			}

			.icon-heart {
				color: #ff7aa5;
				font-size: 32rpx;
			}
		}

		.item-body {
			display: flex;
			margin-top: 20rpx;

			.item-img {
				width: 150rpx;
				height: 150rpx;
				border-radius: 20rpx;
				margin-right: 20rpx;
			}

			.item-desc {
				font-size: 26rpx;
				color: #666;
				flex: 1;
			}
		}

		.item-footer {
			margin-top: 20rpx;
			font-size: 26rpx;
			color: #333;
			text-align: right;
		}
	}
}
</style>
